package com.shuke.sk_worm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shuke.sk_worm.domain.SkAccounts;
import com.shuke.sk_worm.domain.SkShopInfo;
import com.shuke.sk_worm.vo.ShopInfoListVo;

import java.util.Date;
import java.util.List;

public interface SkShopInfoService extends IService<SkShopInfo> {

    /**
     * @return
     */
    List<ShopInfoListVo> listShop(Integer platform);

    List<ShopInfoListVo> listServiceShop(Integer platform, Integer deptId);

    List<ShopInfoListVo> listShopByIds(Integer platform, List<Long> shopIds);

    List<ShopInfoListVo> listShopByIsAbnormal(Integer platform, Integer isAbnormal);

    List<ShopInfoListVo> listShopByLoginFail(Integer platform);

    List<ShopInfoListVo> listShopByUpdateTime(Integer platform);

    List<ShopInfoListVo> listNotTokenShop(Integer platform);

    Boolean updateAbnormal(Long shopId);

    Boolean updateAbnormalTime(Long shopId, Date errorTime);

    Boolean updateNotAbnormalByShopId(Long shopId);

    List<ShopInfoListVo> listCookieShop(Integer platform);

    ShopInfoListVo getShopByShopId(Long shopId);

    List<SkAccounts> findShopAccounts(Integer platform);
}
